home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-chemnitz.de!news
- From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
- Newsgroups: comp.lang.c
- Subject: Re: A question about STRING.
- Date: 22 Jan 96 17:36:04 GMT
- Organization: University of Technology Chemnitz, FRG
- Message-ID: <4e0i24$8f0@pyrrhus-f.hrz.tu-chemnitz.de>
- References: <4e0akh$853@erinews.ericsson.se>
- NNTP-Posting-Host: mmu.hrz.tu-chemnitz.de
-
- etlwihe@etlxdmx.ericsson.se ( wei he (martletts) ) writes:
-
- >Hi there,
-
- >I have a problem with 'C' and need your help.
-
- >In my program, there is a variable MUTLI_RECORDS defined as char, which has a
- >typical string as following:
-
- >1,0,a,map010017000802532236,1,pp,0.2,1,0,map010017000802532236,acc,1,0. ...
-
- >In fact, this string contains many records. Each record contains seven columns.
- >The columns in each record are seperated by the comma ','. Each record is
- >terminated by a full stop '.'.
-
- Maybe you should have a look at the string library functions (i.e.
- the ones which start with str) expecially at strtok(), which may
- help you to solve your problems.
-
- If further examination is necessary you also may have a look
- at lex an tool to create lexical analysators.
-
- Hans Friedrich Steffani
- --
- Hans Friedrich Steffani
- Institut fuer Elektrische Maschinen und Antriebe
- TU Chemnitz-Zwickau
- e-mail: hans.steffani@e-technik.tu-chemnitz.de
-